#include("/WEB-INF/pages/instructor/layout.html")
#@layout()
#define content()
<form action="/instructor/updateScore" class="layui-form">
    <input type="hidden" name="clazzId" value="#(tgm.clazz_id)">
    <input type="hidden" name="courseId" value="#(tgm.course_id)">
    <table class="layui-table">
        <thead>
        <th>课程</th>
        <th>学号</th>
        <th>姓名</th>
        <th>成绩录入</th>
        </thead>
        <tbody>
        #for(student : tgm.teaGradeBeans)
        <tr>
            <td align="center">#(tgm.course_name)</td>
            <td align="center">#(student.student_id)</td>
            <td align="center">#(student.student_name)</td>
            <td align="center">
                <div class="layui-input-inline">
                    <input type="text" name="#(student.student_id)"
                           value="#(student.course_grade ?? '')"
                           autocomplete="off" class="layui-input">
                </div>
            </td>
        </tr>
        #end
        </tbody>
    </table>
    <br>
    <div style="text-align: center"><input type="submit" value="保存" class="layui-btn"></div>
</form>
<br>
<h3>#(msg)</h3>
#end